home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Examples
/
More Examples
/
Section default values
< prev
next >
Wrap
Text File
|
1998-10-26
|
2KB
|
65 lines
; The default values are applied to all instruments that are present
; in the section, except for synth, whose duration is set to '(1/4).
; The duration of other instruments will be equal to the length defined
; in default.
(def-orchestra 'orchestra
all-instruments (piano synth)
piano (left-hand right-hand)
)
(def-section sect-a
default
zone '(1/1 1/1 1/1 1/1)
tonality (activate-tonality (major c 4))
length '(1/8)
velocity '(64)
all-instruments
symbol '(a b c)
synth
symbol '(abc defgh c d e f g h i j k l)
duration '(1/4)
)
(def-channel
synth 1
left-hand 2
right-hand 3
)
(def-controller gm-controllers
(all-instruments main-volume
(list '(127)
(vector-round 50 100 (gen-sin 1 0.3 16))))
)
; When the section is cloned its tonality, velocity and duration
; will be changed. Note that duration is changed only for synth,
; not for those instruments which are set to 'as-lengths'.
(clone-section sect-a sect-b
except
tonality (activate-tonality (pentamajor c 4))
velocity '(54 55 55)
duration (do-section :all
'(change-length times 2 x)
(same-as sect-a))
)
(def-tempo 120)
(midiport :printer)
(play-file-p "default durations"
all-instruments '(sect-a sect-b sect-a)
)
; If you have multiple sections, and some sections play lengths, some
; play durations, make it this way.
;
; (def-class duration (lh rh)
; sect-a as-length ; this plays duration as defined in lengths
; sect-b '(1/4) ; this plays defined durations
; )